草庐IT

Running Gradle task ‘assembleDebug‘

全部标签

【解决】Unknown column ‘xxx‘ in ‘where clause‘

解决Unknowncolumn‘xxx‘in‘whereclause‘当我在insertintotableaccountvalues(5,‘田七’,12345.60)的时候,没有发生任何问题,但是当我按照指定id删除表时,告诉我这样:这说明字段出现看错误,这是什么情况?我试了n次,将mysql重启,再重启,都不行。明明就是id,哪里写错了?太炸裂了。然后,我显示了一下创建时的字段,发现:好像有点奇怪,怎么感觉像是多了一个空格呢?那我创建这张表时的SQL并没有空格啊?其实我是复制过来的SQL,那就有可能是在复制时的格式转换问题了,于是我自己手动又写了一遍,发现:真的这次就不存在空格了。。。所以,

ERROR: Cannot uninstall ‘certifi‘. It is a distutils installed project and thus we cannot accurately

BUG:ERROR:Cannotuninstall‘certifi’.Itisadistutilsinstalledprojectandthuswecannotaccuratelydeterminewhichfilesbelongtoitwhichwouldleadtoonlyapartialuninstall.BUG原因:错误:无法卸载“证书”。这是一个distutils安装的项目,因此我们无法准确确定哪些文件属于它,这只会导致部分卸载。BUG解决方案:pipinstallcertifi--ignore-installedpipinstallcertifi--ignore-installed

vue3+ts 使用parseInt报错Argument of type ‘number‘ is not assignable to parameter of type ‘string‘.

场景在之前习惯使用javascript开发的时候,直接使用parseInt将数字转为整数。而在使用typescript开发时,却出现了报错。报错内容:Argumentoftype'number'isnotassignabletoparameteroftype'string'.报错原因parseInt(string,radix)函数解析字符串并返回整数。第一个参数为要解析的字符串,第二个参数为要转换的进制基数,默认为十进制。javascript里会自动对参数进行隐式转换,因此使用parseInt(100)并不会报错,而typescript时报错了。解决方案1、toString转为字符串const

VUE报错:WebSocket connection to ‘ws:……ws‘ failed: Error in connection establishment: net::ERR_CONNECTI

const{defineConfig}=require('@vue/cli-service')module.exports=defineConfig({devServer:{host:'0.0.0.0',port:3000,client:{webSocketURL:'ws://0.0.0.0:3000/ws',},headers:{'Access-Control-Allow-Origin':'*',}},transpileDependencies:true}) 在vue的vue.config.js里这样设置就不会报错啦,但是我也不知道问什么,纯小白。。。

System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法

在WSL(WindowsSubsystemforLinux,适用于Linux的Windows子系统)下通过systemctl命令启动某些服务将造成Systemhasnotbeenbootedwithsystemdasinitsystem(PID1).Can’toperate.这样的错误;以启动docker为例:sudosystemctlrestartdocker错误信息如下:Systemhasnotbeenbootedwithsystemdasinitsystem(PID1).Can'toperate.Failedtoconnecttobus:Hostisdown解决方案尝试使用以下方法启动服

【UE】BUILD ERROR: Missing precompiled manifest for ‘****‘.

编译报错完整信息:Error:Missingprecompiledmanifestfor‘***’.Thismodulewasmostlikelynotflaggedforbeingincludedinaprecompiledbuild-set‘PrecompileForTargets=PrecompileTargetsType.Any;’inLaunch.build.cstooverride.解决方式:对应的plugin目录的build.cs文件中在使用PrecompileForTargets=PrecompileTargetsType.Any的代码前加判断示例: if(Target.Ty

git报错fatal: unable to access ‘https://github.com/…’: OpenSSL SSL_read: Connection was reset, errno 1

git报错fatal:unabletoaccess‘https://github.com/…’: OpenSSL SSL_read:Connectionwasreset,errno10054原因:一般是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错解决办法:解除ssl验证后,再次git即可gitconfig--globalhttp.sslVerifyfalse

【实战】git 修改之前的提交记录信息(git commit -m ‘...‘)

文章目录一、修改本地最后一条提交记录信息二、修改前面某条或某几条提交记录信息一、修改本地最后一条提交记录信息不论线上是否已有多次他人提交,只要是修改本地最后一条提交记录信息,都可以按这个来gitcommit--amend进入vi编辑器后:按i下方出现’--插入--‘的提示时,便可编辑提交记录信息按ESC,输入:wq保存退出,或:q!不保存强制退出查看提交日志中修改后的信息gitlog二、修改前面某条或某几条提交记录信息查看前面的提交日志gitlog回退到倒数第n次的状态(修改多条的话n取最大值,也就是最远的一次提交记录)gitrebase-iHEAD~n也可以取某次版本号的前7位回退gitre

Refused to apply style from ‘http://localhost:8080/src/assets//css/reset.css‘

完整报错信息是Refusedtoapplystylefrom'http://localhost:8080/src/assets//css/reset.css'becauseitsMIMEtype('text/html')isnotasupportedstylesheetMIMEtype,andstrictMIMEcheckingisenabled问题就是这个文件的类型不是一个受支持的样式表,无法应用样式。在vue项目中,在src的assets目录下设置了一些css文件,然后在public下的index.html中引入,启动项目出现了此问题。解决方法:因为在vue项目中,public和src目录

No plugin found for prefix ‘install‘ in the current project and in the plugin groups 的解决方法

【现象】[WARNING]Failuretotransferorg.apache.maven.plugins/maven-metadata.xmlfromhttp://maven.oschina.net/content/groups/public/wascachedinthelocalrepository,resolutionwillnotbereattempteduntiltheupdateintervalofoschaselapsedorupdatesareforced.Originalerror:Couldnottransfermetadataorg.apache.maven.plugi